package com.reactnativestudy;

import com.reactnativestudy.model.ReactBundle;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Url;


public interface ApiInterface {
    @GET("bundle-android/{fileName}")
    Observable<ResponseBody> downloadBundle(@Path("fileName") String fileName);

    @GET
    Observable<ReactBundle> getConfig(@Url String configUrl);

    @GET
    Observable<ResponseBody> download(@Url String fileUrl);
}
